home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / EGYPTW.DIR / 01711_Script_Superstitions < prev    next >
Text File  |  1995-09-13  |  7KB  |  239 lines

  1. global gQuest, gBeenClicked
  2.  
  3. on ESuperRollovers
  4.   set gBeenClicked = 0
  5.   if (not(CheckClickedStatus(gQuest))) then
  6.     if rollover(6) or rollover(7) then
  7.       repeat while rollover(6) or rollover(7)
  8.         EgyptCursor
  9.         puppetsprite 11, true
  10.         set the locH of sprite 11 to 295
  11.         set the locV of sprite 11 to 322
  12.         updatestage
  13.         if the mousedown then
  14.           set GBeenClicked = 1
  15.         else
  16.           if gBeenClicked = 1 then
  17.             repeat while gBeenClicked = 1
  18.               SlaveDriver
  19.             end repeat
  20.           end if
  21.         end if
  22.       end repeat
  23.       set the locH of sprite 11 to 995
  24.       puppetsprite 11, false
  25.       updatestage
  26.     else
  27.       if rollover(12) then
  28.         ArrowCursor
  29.         repeat while rollover(12)
  30.           set the locH of sprite 13 to 353
  31.           set the locV of sprite 13 to 163
  32.           updatestage
  33.         end repeat
  34.         set the locH of sprite 13 to 953
  35.         updatestage
  36.       else
  37.         if rollover(14) then
  38.           ArrowCursor
  39.           repeat while rollover(14)
  40.             set the locH of sprite 15 to 415
  41.             set the locV of sprite 15 to 248
  42.             updatestage
  43.           end repeat
  44.           set the locH of sprite 15 to 915
  45.           updatestage
  46.         else
  47.           if the mousecast = the castnum of sprite 8 then
  48.             repeat while the mousecast = the castnum of sprite 8
  49.               EgyptCursor
  50.               set the locH of sprite 28 to 559
  51.               set the locV of sprite 28 to 303
  52.               updatestage
  53.               if the mousedown then
  54.                 set GBeenClicked = 1
  55.               else
  56.                 if gBeenClicked = 1 then
  57.                   repeat while gBeenClicked = 1
  58.                     DropBody 
  59.                   end repeat
  60.                 end if
  61.               end if
  62.             end repeat
  63.             set the locH of sprite 28 to 959
  64.             updatestage
  65.           else
  66.             if rollover(9) then
  67.               repeat while rollover(9)
  68.                 EgyptCursor
  69.                 set the locH of sprite 16 to 425
  70.                 set the locV of sprite 16 to 329
  71.                 updatestage
  72.                 if the mousedown then
  73.                   set GBeenClicked = 1
  74.                 else
  75.                   if gBeenClicked = 1 then
  76.                     repeat while gBeenClicked = 1
  77.                       AnimateLoopFastest 9, 670, 3, "SE390601.AIF", 5
  78.                     end repeat
  79.                   end if
  80.                 end if
  81.               end repeat
  82.               set the locH of sprite 16 to 925
  83.               updatestage
  84.             else
  85.               if rollover(10) then
  86.                 repeat while rollover(10)
  87.                   EgyptCursor
  88.                   set the locH of sprite 17 to 420
  89.                   set the locV of sprite 17 to 320
  90.                   updatestage
  91.                   if the mousedown then
  92.                     set GBeenClicked = 1
  93.                   else
  94.                     if gBeenClicked = 1 then
  95.                       repeat while gBeenClicked = 1
  96.                         AnimateLoopFast 10, 674, 5, "SE390801.AIF", 1
  97.                       end repeat
  98.                     end if
  99.                   end if
  100.                 end repeat
  101.                 set the locH of sprite 17 to 920
  102.                 updatestage
  103.               else
  104.                 if rollover(41) then
  105.                   HandCursor
  106.                 else
  107.                   if rollover(42) then
  108.                     HandCursor
  109.                   else
  110.                     ArrowCursor
  111.                   end if
  112.                 end if
  113.               end if
  114.             end if
  115.           end if
  116.         end if
  117.       end if
  118.     end if
  119.   end if
  120.   RandomQuestion(gQuest)
  121. end
  122.  
  123. on SlaveDriver
  124.   ArrowCursor
  125.   set gAnimationcast1 = 655
  126.   set gAnimationcast2 = 658
  127.   set count = 0
  128.   puppetsound "SE390201.AIF"
  129.   repeat while count < 2 and (the mouseUp)
  130.     set the castnum of sprite 6 = gAnimationcast1 + 1
  131.     updatestage
  132.     wait .5
  133.     if (the mousedown) then 
  134.       exit repeat
  135.     end if
  136.     set the castnum of sprite 6 = gAnimationcast1 + 2
  137.     set the castnum of sprite 7 = gAnimationcast2 + 1
  138.     updatestage
  139.     if (the mousedown) then 
  140.       exit repeat
  141.     end if
  142.     wait .5
  143.     set the castnum of sprite 6 = gAnimationcast1 + 1
  144.     set the castnum of sprite 7 = gAnimationcast2 + 2
  145.     updatestage
  146.     if (the mousedown) then 
  147.       exit repeat
  148.     end if
  149.     wait .5
  150.     set the castnum of sprite 6 = gAnimationcast1
  151.     set the castnum of sprite 7 = gAnimationcast2 + 1
  152.     updatestage
  153.     if (the mousedown) then 
  154.       set animating = 0
  155.       exit repeat
  156.     end if
  157.     wait .5
  158.     set the castnum of sprite 7 = gAnimationcast2
  159.     updatestage
  160.     if (the mousedown) then 
  161.       set animating = 0
  162.       exit repeat
  163.     end if
  164.     wait .5
  165.     set count = count + 1
  166.   end repeat
  167.   set the castnum of sprite 6 = gAnimationcast1
  168.   set the castnum of sprite 7 = gAnimationcast2
  169.   updatestage
  170.   sound fadeout 1, 2*60
  171.   set gBeenClicked = 0
  172. end
  173.  
  174. on DropBody
  175.   ArrowCursor
  176.   set gAnimationcast1 = 661
  177.   set count = 0
  178.   repeat while count < 1 and (the mouseUp)
  179.     set the castnum of sprite 8 = gAnimationcast1 + 1
  180.     updatestage
  181.     wait .1
  182.     if (the mousedown) then 
  183.       exit repeat
  184.     end if
  185.     set the castnum of sprite 8 = gAnimationcast1 + 2
  186.     updatestage
  187.     if (the mousedown) then 
  188.       exit repeat
  189.     end if
  190.     wait .1
  191.     puppetsound "SE390501.AIF"
  192.     set the castnum of sprite 8 = gAnimationcast1 + 3
  193.     updatestage
  194.     if (the mousedown) then 
  195.       exit repeat
  196.     end if
  197.     wait .1
  198.     set the castnum of sprite 8 = gAnimationcast1 + 4
  199.     updatestage
  200.     if (the mousedown) then 
  201.       exit repeat
  202.     end if
  203.     wait .1
  204.     set the castnum of sprite 8 = gAnimationcast1 + 5
  205.     updatestage
  206.     if (the mousedown) then 
  207.       exit repeat
  208.     end if
  209.     wait .1
  210.     set the castnum of sprite 8 = gAnimationcast1 + 6
  211.     updatestage
  212.     if (the mousedown) then 
  213.       exit repeat
  214.     end if
  215.     wait .1
  216.     set the castnum of sprite 8 = gAnimationcast1 + 7
  217.     updatestage
  218.     if (the mousedown) then 
  219.       exit repeat
  220.     end if
  221.     wait .1
  222.     set the castnum of sprite 8 = gAnimationcast1 + 8
  223.     updatestage
  224.     if (the mousedown) then 
  225.       exit repeat
  226.     end if
  227.     wait 1
  228.     set count = count + 1
  229.   end repeat
  230.   set the castnum of sprite 8 = gAnimationcast1
  231.   updatestage
  232.   puppetsound 0
  233.   set gBeenClicked = 0
  234. end
  235.  
  236.  
  237.  
  238.  
  239.